<link rel="stylesheet" type="text/css" href="<?=gurl('css');?>/index.css" />
<script language="javascript" src="<?=gurl('js');?>/user.js"></script>
<!-- 主容器 -->
<div class="login">
<? if($account):?>
<a href="/home/profile/<?=$account["account_id"];?>"><?=$account["account_username"];?></a><a href="<?=gurl('accounts/logout');?>">退出</a><a href="<?=gurl('about/contact');?>">建议</a>
<? else:?>
<a href="<?=gurl('accounts/');?>">登录</a><a href="<?=gurl('accounts/');?>">注册</a><a href="<?=gurl('about/contact');?>">建议</a>
<? endif;?>
</div>
<div class="w940">
	<div class="webShow">
		<span class="tl"></span><span class="tr"></span>
		<div class="cc" id="indexbanner">
		</div>
		<span class="bl"></span><span class="br"></span>
	</div>
	<div class="loginBox">
		<span class="tl"></span><span class="tr"></span>
		<div class="cc">
		<? if($account):?>
			<dl>
				<dt>
					<span class="logLeft"><img class="blank" src="images/tran.gif" /><a href="/home/profile/<?=$account["account_id"];?>" ><img src="<?=gurl('data');?>/upload_pic/<?=$account['photo'];?>" onerror="this.src='<?=gurl('images');?>/userlogo.gif';" width="40" height="40" /></a></span>
					<span class="logRight">
						<a class="tit" href="/home/profile/<?=$account["account_id"];?>"><?=$account["account_username"];?></a>
					</span>
				</dt>
				
				<dt>
				<? if($usersite):?>
					<span class="logLeft"><img class="blank" src="images/tran.gif" /><a href="<?=c('site_url');?><?=$usersite['domain'];?>"><img src="<?=gurl('data');?>/upload_pic/<?=$usersite['info']['logo'];?>" onerror="this.src='<?=gurl('images');?>/hotweblog.gif';" width="40" height="40" /></a></span>
					<span class="logRight">
						<a class="tit" href="<?=c('site_url');?><?=$usersite['domain'];?>"><?=$usersite["name"];?></a>
						<em><a href="<?=c('site_url');?><?=$usersite['domain'];?>"><script language="javascript" src="<?=gurl('site_statis/funs/'.$usersite["id"]);?>"></script></a>人关注</em>
					</span>
				<? endif;?>
				</dt>
				
				<dd><? if($myfuns>0):?>关注<a href="/home/site/<?=$account["account_id"];?>"><?=$myfuns;?></a>个轻站<? endif;?></dd>
				<dd><? if($mymessages>0):?><a style="color:#bd202e;" href="/home/inbox/<?=$account["account_id"];?>">新邮件</a> <? endif;?><? if($newcomment):?><a style="color:#bd202e;" href="/home/comment/<?=$account["account_id"];?>">新回应</a> <? endif;?><? if($mynotices>0):?><a style="color:#bd202e;" href="/home/notice/<?=$account["account_id"];?>">新通知</a><? endif;?></dd>
			</dl>
		<? else:?>
		<form method="post" action="<?=gurl('accounts/login');?>" onSubmit="return check_sitelogin_form(this);">
			<ul class="lgi">
				<li><span>Email：</span><input name="loginemail" id="loginemail" type="text" class="lgiTxt hilightbox" /></li>
				<li><span>密码：</span><input type="password" name="loginpassword" id="loginpassword" class="lgiTxt hilightbox" /></li>
			</ul>
			<p class="point" id="ts" style="padding-bottom:6px;">&nbsp;</p>
			<p class="lgiKey"><span class="fgt" style="*position:relative;*top:-4px;"><a href="<?=gurl('accounts/forget');?>" class="cCBlue">忘记密码</a></span><span style="*position:relative;*top:-4px;"><input name="remember" id="remember" type="checkbox" value="1" style="margin-bottom:2px \0;*vertical-align:bottom;" />记住我</span><span><input name="logindosubmit" id="logindosubmit" type="submit" value="登录" class="blueKey" /></span><span><input type="button" value="注册" class="blueKey" onclick="window.location.href='<?=gurl('accounts/');?>'" /></span></p>
		</form>
		<? endif;?>
		</div>
		<span class="bl"></span><span class="br"></span>
	</div>
	<div class="hackbox"></div>
</div>
<div class="blank8"></div>
<div class="w940">
	<div class="w660">
		<div class="wallLeft">
			<ul>
				<li <? if($classid == 0):?>class="sel"<? endif;?>><a class="cGray" href="/wall">全部</a></li>
				<? foreach($classes as $class):?>
				<li <? if($classid == $class['id']):?>class="sel"<? endif;?>><a class="cGray" href="/wall/<?=$class['id'];?>"><?=$class['name'];?></a></li>
				<? endforeach;?>
			</ul>
		</div>
		<div class="content">
			<h1><a id="top" name="top">&nbsp;</a><? if($classid == 0):?>全部<? else:?><?=$current_class['name'];?><? endif;?></h1>
            <div class="blank8"></div>
            <? if($lists):?>
			<p class="f14px">以下话题从各轻站的社区同步出来</p>
            <div class="blank8"></div>
            <ul class="wallList">
			<? foreach($lists as $list):?>
            	<li><span class="listImg1"><img class="blank" src="<?=gurl('images');?>/tran.gif"><a href="<?=c('site_url');?><?=$list['domain'];?>"><img alt="<?=$list['sitename'];?>" src="<?=gurl('data');?>/upload_pic/<?=$list['logo'];?>" onerror="this.src='<?=gurl('images');?>/testlogo1.gif';" width="60" height="60"></a></span>
					<span class="listTxt1"><a  href="<?=c('site_url');?><?=$list['domain'];?>/forum/show/<?=$list['id'];?>" class="titWall"><?=$list['title'];?></a>
						<? if($list['haspic']):?><em class="iconCa1"></em><? endif;?><!--<em class="iconCa2"></em>--><? if($list['commentcount']>0):?><a class="cDGray">(<?=$list['commentcount'];?>人回应)</a><? endif;?>
					</span>
                    <p><a href="/home/profile/<?=$list['userinfo']["id"];?>" class="cCGray"><?=$list["userinfo"]["username"];?></a><em class="writeTime"><?=date("Y-m-d H:i",$list["addtime"]);?></em>来自<a href="<?=c('site_url');?><?=$list['domain'];?>"><?=$list['sitename'];?></a></p>
				</li>
            <? endforeach;?>
            </ul>
            <div class="allmark">
				<div class="right"><a href="#top" class="goTop cCGray">返回顶部</a></div>
			</div>
			<div class="blank8"></div>
			<div class="page">
				<?=$pagestring;?>
			</div>
			<? endif;?>
		</div>
		
		<div class="hackbox"></div>
	</div>
	<div class="sider">
			<h3 class="attention">关注我们</h3>
			<ul class="listAtt">
				<li><a href="http://www.renao100.com/site/renao100" >热闹网官方轻站</a></li>
				<li class="mysina"><a href="http://weibo.com/renao100" >热闹网新浪微博</a></li>
				<li class="myqq"><a href="http://t.qq.com/renao100" >热闹网腾讯微博</a></li>
			</ul>
			<div class="blank8"></div>
			<script language="javascript" src="http://www.renao100.com/ads/get/40"></script>
			<div class="blank8"></div>
			<h3 class="f14px">热闹严选</h3>
			<ul class="liststrict">
				<? foreach ($topics as $row):?>
				<li><a href="<?=c('site_url');?><?=$row['site']['domain'];?>/forum/show/<?=$row['id'];?>" title="<?=$row['title'];?>" class="cGray"><?=msubstr($row["title"],0,18);?></a></li>
				<? endforeach;?>
			</ul>
			<div class="blank8"></div>
			<script language="javascript" src="http://www.renao100.com/ads/get/41"></script>
			<div class="blank8"></div>
			<h3 class="f14px">看看轻站</h3>
			<ul class="listKK">
			<? foreach ($kansites as $site):?>
				<li><span class="listImg"><img src="images/tran.gif" class="blank" /><a href="<?=c('site_url');?><?=$site['domain'];?>"><img src="<?=gurl('data');?>/upload_pic/<?=$site['info']['logo'];?>" onerror="this.src='<?=gurl('images');?>/testlogo1.gif';" alt="<?=$site['name'];?>" width="60" height="60" /></a></span>
					<span class="listTxt"><a class="title" href="<?=c('site_url');?><?=$site['domain'];?>"><?=$site['name'];?></a>
						<em class="intr"><?=$site['info']['description'];?></em>
						<em class="cCGray"><?=$site['funs'];?>人关注</em>
					</span>
				</li>
			<? endforeach;?>
			</ul>
			<div class="hackbox"></div>
			<script language="javascript" src="http://www.renao100.com/ads/get/42"></script>
			<script language="javascript" src="http://www.renao100.com/ads/get/43"></script>
			<script language="javascript" src="http://www.renao100.com/ads/get/44"></script>
		</div>
	<div class="hackbox"></div>
</div>
<script language="javascript">
	$(document).ready(function(){		
		aj_get_banner(45, "indexbanner");
	})
</script>